package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println("主线程："+main);
        dosome();
        System.out.println("main方法执行完毕，主线程结束");
    }

    public static void dosome(){
        Thread t = Thread.currentThread();
        System.out.println("运行dosome方法线程："+t);
    }
}
